<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
    <title>新增一栋楼房</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<link href="../css/css.css" rel="stylesheet" type="text/css" />
    <script src="../js/jquery-1.3.2.min.js" type="text/javascript"></script>
    <script src="../js/HouseValidate.js" type="text/javascript"></script>
    <script src="../js/ajaxfileupload.js" type="text/javascript"></script>
    <script src="../js/Suggest.js" type="text/javascript"></script>
  </head>
  <script language="javascript" type="text/javascript">
		    $(function()
		     {
		        $("#buildDesc").blur(function() 
		        {
		            stringValidate(this.value, $("#buildDescMsg"));
		        });
		         $("#buildCode").blur(function() 
		        {
		            stringValidate(this.value, $("#buildCodeMsg"));
		        });
		        $("#roomSum").blur(function() 
		        {
		            RoomNumValidate(this.value, $("#roomSumMsg"));
		        });
		        $("#floorCount").blur(function() 
		        {
		            FloorCountValidate(this.value, $("#floorMsg"));
		        });
		        $("#electricPrice").blur(function() 
		        {
		            ElectricPriceValidate(this.value, $("#electricPriceMsg"));
		        });
		        $("#managePrice").blur(function() 
		        {
		            ManagePriceValidate(this.value, $("#managePriceMsg"));
		        });
			    $("#txtHouseOld").blur(function() 
			    {
			        HouseAcreageValidate(this.value, $("#txtHouseOldMsg"));
			    });
		        
		    });
	    
	</script>
  <body>
    <form action="<%=request.getContextPath() %>/room/build!insert.action" method="post">
    <div id="JJheadline"></div>
		<div id="contentbox">
			<div id="JJrightbox">
				<div id="JJrightbox_T">
					<label id="lblTitle">新增楼房</label>
				</div>
				<div id="JJrightbox_C">
					<div id="JJright_C_info">
						<ul>
							<li style="width:60px;">楼房描述</li>
							<li style="width:556px;"><input name="build.buildDesc"
								type="text" id="buildDesc" maxlength="100" style="width:300px;"
								class="inputE" value="${build.buildDesc}" /><label
								id="buildDescMsg">请输入楼房描述.如:龙华新区XXX栋一单元 <span>*</span> </label>
							</li>
							<li style="width:60px;">楼房编号</li>
							<li style="width:556px;"><input name="build.buildCode"
								type="text" id="buildCode" maxlength="100" class="inputE"
								style="width:100px;" /><label id="buildCodeMsg">
									请输入楼房编号 <span>*</span> </label></li>
							<li style="width:60px;">房间数量</li>
							<li style="width:556px;"><input name="build.roomSum"
								type="text" id="roomSum" maxlength="100" class="inputE"
								style="width:100px;" /><label id="roomSumMsg"> 请输入房间数量
									<span>*</span> </label></li>
							<li style="width:60px;">楼&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;层</li>
							<li style="width:556px;">第<input name="build.floor"
								maxlength="100" type="text" class="inputE" style="width:50px;"
								id="floor" /> 层/共 <input id="floorCount" maxlength="100"
								type="text" class="inputE" style="width:50px;" /> 层 <label
								id="floorMsg"> <span>*</span> </label></li>
							<li style="width:60px;">水电费用</li>
							<li style="width:556px;">水<input name="build.waterPrice"
								maxlength="100" type="text" class="inputE" style="width:50px;"
								id="waterPrice" /> 元/m³ &nbsp;&nbsp;电<input
								name="build.electricPrice" id="electricPrice" maxlength="100"
								type="text" class="inputE" style="width:50px;" /> 元/度 <label
								id="electricPriceMsg"> <span>*</span> </label></li>
							<li style="width:60px;">管理费用</li>
							<li style="width:556px;">卫生费<input name="build.garbagePrice"
								maxlength="100" type="text" class="inputE" style="width:50px;"
								id="garbagePrice" /> 元/月 &nbsp;&nbsp;管理费<input
								name="build.managePrice" id="managePrice" maxlength="100"
								type="text" class="inputE" style="width:50px;" /> 元/月 <label
								id="managePriceMsg"><span>*</span> </label></li>
							<li style="width:60px;">房&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;龄</li>
							<li style="width:556px;"><input id="txtHouseOld"
								maxlength="100" type="text" class="inputE" style="width:50px;" />
								<label id="txtHouseOldMsg" for="txtHouseOld">年 <span>*</span>
							</label></li>
							<li style="width:60px;">有无租约</li>
							<li style="width:556px;"><input type="radio" id="radRentTrue"
								name="rent" value="1"/> 是 <input type="radio" name="rent" checked="true"
								id="radRentFalse"  value="0"/> 否</li>
							<li style="width:60px;">装修情况</li>
							<li style="width:556px;"><input type="radio" id="build.decorate"
								name="build.decorate"  value="1"/> 简装<input type="radio"
								name="build.decorate" checked="true" id="build.decorate"  value="2"/> 精装<input
								type="radio" name="build.decorate" id="build.decorate"  value="3"/> 豪华</li>
							<li style="width:60px;">房屋类型</li>
							<li style="width:556px;"><input type="radio" id="build.buildType"
								name="build.buildType"  value="1"/> 小区房<input type="radio"
								name="build.buildType" checked="true" id="build.buildType"  value="2"/> 农民房</li>
							<li style="width:60px;">有无电梯</li>
							<li style="width:556px;"><input type="radio" id="build.isLift"
								name="build.isLift"  value="1"/> 有电梯<input type="radio" name="build.isLift"
								checked="true" id="build.isLift"  value="0"/> 无电梯</li>
							<li style="width:60px;">有无监控</li>
							<li style="width:556px;"><input type="radio" id="build.isMonitor"
								name="build.isMonitor"  value="1"/> 有监控<input type="radio"
								name="build.isMonitor" checked="true" id="build.isMonitor"  value="0"/> 无监控</li>

						</ul>
					</div>
					<ul>
						<li><a href="#" onClick="return AddBuildFormCehck();"><img ID="ibtnSubmit" src="../images/JJvipbutton02.gif"
							 /></a>
							 </li>
					</ul>
				</div>
			</div>
		</div>
	</form>
  </body>
</html>
